import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import App from './App'

const container = document.getElementById('root') as HTMLElement
const root = createRoot(container)
root.render(
  // BrowserRouter 包裹整个组件 声明一个非hash模式的路由  basename路由器的默认根路径
  // <BrowserRouter basename="/admin">
  <BrowserRouter>
    <App />
  </BrowserRouter>
)
